package com.dhcc.bpm.business.papc.mapper;

import com.dhcc.bpm.business.papc.entity.PrdtInfo;
import com.dhcc.bpm.business.papc.vo.PrdtInfoVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * 产品基础信息  Mapper 接口
 *
 * @author liuzhao
 * @since 2020-05-16
 */
public interface PrdtInfoMapper extends BaseMapper<PrdtInfo> {

    /**
     * @param page
     * @param prdtInfo
     * @return java.util.List<com.dhcc.bpm.business.papc.vo.PrdtInfoVO>
     * @Description 自定义分页
     * @Author liuzhao
     * @Date 2020/5/22 10:35
     **/
    List<PrdtInfoVO> selectPrdtInfoPage(IPage page, PrdtInfoVO prdtInfo);

    /**
     * @param id
     * @return com.dhcc.bpm.business.papc.entity.PrdtInfo
     * @Description 详情
     * @Author liuzhao
     * @Date 2020/5/22 10:36
     **/
    PrdtInfo selectPrdtInfoById(Long id);

    /**
     * @param prdtInfo
     * @return int
     * @Description 新增
     * @Author liuzhao
     * @Date 2020/5/22 10:36
     **/
    int save(PrdtInfo prdtInfo);

    /**
     * @param prdtInfo
     * @return int
     * @Description 更新
     * @Author liuzhao
     * @Date 2020/5/22 10:36
     **/
    int update(PrdtInfo prdtInfo);

    /**
     * @param ids
     * @return int
     * @Description 删除
     * @Author liuzhao
     * @Date 2020/5/22 10:42
     **/
    int deletePrdtInfoByIds(String[] ids);

    /**
     * @param prdtInfo
     * @return java.util.List<com.dhcc.bpm.business.papc.entity.PrdtInfo>
     * @Description 查询全部信息
     * @Author liuzhao
     * @Date 2020/5/22 10:41
     **/
    @Select("select * from zjyw_prdt_info")
    List<PrdtInfo> selectPrdtInfoAll(PrdtInfo prdtInfo);
}
